# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from .Provider import Provider
from ..authorization import Gate


class AuthorizationProvider(Provider):
    def __init__(self, application):
        self.application = application

    def register(self):
        self.application.bind("gate", Gate(self.application))

    def boot(self):
        pass
